<!DOCTYPE html>
<html>
<head>
<#include  "../../common/meta.html"/>
<title>${webName}>>用户列表</title>
<style>
 td{text-align: center;width: 10%;border:1px solid black;}
 table{border:1px solid black;}
 a{
 	text-decoration: none;
 	    display: block;
 	    padding: 3px 7px;
    text-align: center;
 }
 ul li{ display: inline-block;margin: 0px 10px;border:1px solid red;}
</style>
</head>
<body>
	<div style="width: 1200px; margin: 0 auto;">
	<h1>用户列表</h1>
		<table border="0" cellspacing="0">
			<tr>
				<td>用户id</td><td>用户名</td><td>年龄</td><td>真实姓名</td><td>地址</td><td>QQ</td><td>手机号</td><td>E-mail</td><td>账户余额</td>
			</tr>
			<#if userlist?? && userlist?size gt 0>
			<#list userlist as u>
			<tr>
				<td>${u.id!}</td><td>${u.userName!}</td><td>${u.age!}</td>
				<#if u.realname?? && u.realname !="" >
				<td>${u.realname!}</td>
				<#else>
				<td>--</td>
				</#if>
				<#if u.adresss?? && u.adresss !="" >
				<td style="width: 15%">${u.adresss!}</td>
				<#else>
				<td style="width: 15%">--</td>
				</#if>
				<#if u.qq?? && u.qq !="" >
				<td>${u.qq!}</td>
				<#else>
				<td>--</td>
				</#if>
				<#if u.phone?? && u.phone !="" >
				<td>${u.phone!}</td>
				<#else>
				<td>--</td>
				</#if>
				<#if u.email?? && u.email !="" >
				<td>${u.email!}</td>
				<#else>
				<td>--</td>
				</#if>
				<#if u.account??>
				<td style="color: red;">￥：${u.account?c!}</td>
				<#else>
				<td>--</td>
				</#if>
			</tr>
			</#list>
			<tr>
				<td colspan="9" >
					<ul>
						<#if p?? && p?size gt 1 >
								<#if p.pageNum == 1 >
									<li><a>上一页</a></li>
								<#else>
									<li><a href="${ctx}/user/allUser?page=${p.prePage}">上一页</a></li>
								</#if>
							<#list 1..p.pages as i>    
										<#if p.pageNum ==i  >
										<li style="border:1px solid blue;"><a href="${ctx}/user/allUser?page=${i}">${i}</a></li>
										<#else>
											<li><a href="${ctx}/user/allUser?page=${i}">${i}</a></li>
										</#if>
								
							</#list>
								<#if p.pageNum == p.pages >
									<li><a>下一页</a></li>
								<#else>
									<li><a href="${ctx}/user/allUser?page=${p.nextPage}">下一页</a></li> 
								</#if>		
						<li>共 ${p.total!} 条记录/ ${p.pages!}页</a></li> <li>当前为第${p.pageNum!}页</a></li> 
						</#if>
					</ul>
				</td>
			</tr>
				
			</div>
			<#else>
				<tr>
					<td colspan="9" ><font style="color: red">没有相关数据！</font></td>
				</tr>
			</#if>
		</table>
	</div>
</body>
</html>